package com.zeng.demo2;

/**
 * @author zeng
 * @date 2021/08/04 14:24
 */
public class ProxyService  extends Servicelmpl implements BeformIt{
    private Servicelmpl servicelmpl;

    public void setServicelmpl(Servicelmpl servicelmpl) {
        this.servicelmpl = servicelmpl;
    }

    @Override
    public void methodUse(String method) {
        System.out.println("" + "使用了" + method + "方法");
    }

    @Override
    public void addUser() {
        methodUse("add");
        this.servicelmpl.addUser();
    }

    @Override
    public void delUser() {
        methodUse("del");
        this.servicelmpl.delUser();
    }

    @Override
    public void queryUser() {
        methodUse("query");
        this.servicelmpl.queryUser();
    }

    @Override
    public void updateUser() {
        methodUse("update");
        this.servicelmpl.updateUser();
    }
}
